home *** CD-ROM | disk | FTP | other *** search
- procedure Hack;
- var
- W: array[0..$7F] of Byte;
- I: Integer;
- begin
- for I := 0 to $7F do W[I] := I;
- end;
-
- procedure TWinControl.DefaultHandler(var Message);
- begin
- if FHandle <> 0 then
- with TMessage(Message) do
- begin
- if (Msg = WM_PAINT) and (WParam <> 0) then Hack; { <== HERE!! }
- Result := CallWindowProc(FDefWndProc, FHandle, Msg, WParam, LParam);
- end
- else
- inherited DefaultHandler(Message);
- end;